package com.zhanghaojia.wyn.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 张好佳
 * @date 2022年01月03日 4:21 PM
 */
@Controller
@RequestMapping("/index")
public class PageController {

    @RequestMapping
    public String mainPage(){
        return "user";
    }
    @RequestMapping("admin")
    public String adminPage(){
        return "admin";
    }
}

